<?php
/*
 * @Author: Zheng_Great
 * @Date: 2020-03-26 10:29:29
 * @Description:  
 */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '修改密码';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
    <h1><?= Html::encode($this->title) ?></h1>
    
    <?php print_r($usermodel['username']);?>

    <div class="row">
        <div class="col-lg-5">
            <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>

                <?= $form->field($usermodel, 'username',['inputOptions'=>['disabled'=>"disabled",'username'=>$usermodel['username']]])->textInput() ?>

                <?= $form->field($usermodel, 'password_hash')->passwordInput() ?>
                
                <?= $form->field($usermodel, 'repassword')->passwordInput() ?>

                <div class="form-group">
                    <?= Html::submitButton('确认', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
                </div>

            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>
